{% extends "base.html" %}
{% block title %}文件{% endblock %}
{% block content %}
<div id="contentlist">
<table width="600px" cellspacing="0" cellpadding="0" border="1px">
<tr>
<th>文件名</th>
<th>大小</th>
<th>描述</th>
<th>上传日期</th>
<th>下载次数</th>
<th>操作</th>
</tr>
			{% for file in files %}
				<tr>
                <td><a href="media/{{ file.key }}/{{file.name}}?a=download">{{ file.name|escape }}</a></td>
                <td>{{ file.size|filesizeformat }}</td>
                <td>{{ file.desc }}</td>
                <td>{{ file.date|date:"Y-m-d H:i:s" }}</td>
                <td>{{ file.download }}</td>
                <td><a href="/phone/media?action=delete&id={{file.key}}">删除</a></td>
                </tr>
			{% endfor %}
</table>
</div>
{% endblock %}